 <!DOCTYPE html>
<%@ page language="java" pageEncoding="UTF-8"%>
<%@ taglib uri="http://java.sun.com/jstl/core_rt" prefix="c"%>
<%@ taglib uri="http://java.sun.com/jstl/fmt" prefix="fmt"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/functions" prefix="fn"%>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta charset="utf-8">
<jsp:include page="/pad/common/commonCss.jsp"/> 
<jsp:include page="/pad/common/commonJs.jsp"/>
<script src="${basePath}pad/commonJs/jquery.imageScroller.js"></script>
<title>pad-预约付款下订单</title>
<script type="text/javascript">
  var basePath = "${basePath}";
	$(document).ready(function() {
		initOrderPrd('huiyuanyouhui');
		$("#youhuicheckId").attr("checked", true);
		var isChecked = $("#youhuicheckId").attr("checked");
		if ("checked" == isChecked) {
		 checkedyouhui();
		}
		$("#paidAmount").val('${paidAmount}');

	});

	function disCountOk() {// 特殊折扣【确定】
		if ($("#pwd").val() == "") {
			alertError("经理密码不能为空");
			return false;
		}
		var textdis = $("#selDis").find("option:selected").text();
		var prdId = $("#hidPrid").val();
		var selDis = $("#selDis").val();
		// 经理密码验证
		$
				.ajax({
					cache : false,
					type : "get",
					url : "${basePath}membership/single/validationManagerPassword.shtml",
					data : "password=" + $("#pwd").val(),
					error : function(XMLHttpRequest) {
						ajaxError(XMLHttpRequest);
						},
					success : function(msg) {
						if (msg == "0") {
							alertError("经理密码错误！");
							return false;
						} else {
							// 修改 商品明细 折扣后的金额
							$
									.ajax({
										cache : false,
										type : "get",
										url : "${basePath}parreserve/orderPrdDiscount.shtml",
										data : "prdId="
												+ prdId
												+ "&pkOrderId=${orderPk}&selDis="
												+ selDis + "&fkUserId=" + msg,
										error : function(XMLHttpRequest) {
											ajaxError(XMLHttpRequest);
											},		
										success : function(msg) {
											if (msg != "") {
													 var tdDescId = "#tdDesc"+ prdId;
													 $(tdDescId).html(textdis);
													  var tdPricesId = "#tdPrices"+ prdId;
													  var disPricetd =$(tdPricesId).html();
													  var houPriceArray =msg.split("@@");
													  var houDisPriceTd =houPriceArray[0];
													  $(tdPricesId).html(parseFloat(houDisPriceTd).toFixed(2));
													  var houPaidAmount =houPriceArray[2];
													  var seldiscount =houPriceArray[1];
													  if(houPaidAmount !=-1){
														  var houPaidAmount =parseFloat(houPaidAmount)*parseFloat(seldiscount);
														  $("#paidAmount").val(houPaidAmount);
													  }
													  var yingfuPrice =$("#yingfuSdiv").html();
													  if(yingfuPrice !=null){
														  var yingfuPriceArray  =yingfuPrice.split("￥");
															 yingfuPrice =yingfuPriceArray[1];
															 var houYingfu =parseFloat(yingfuPrice)-parseFloat(disPricetd) +parseFloat(houDisPriceTd);
															 $("#yingfuSdiv").html("￥"+parseFloat(houYingfu).toFixed(2));
													}else{
														  yingfuPrice =$("#nozhengdanId").html();
														var yingfuPriceArray  =yingfuPrice.split("￥");
														 yingfuPrice =yingfuPriceArray[1];
														 var houYingfu =parseFloat(yingfuPrice)-parseFloat(disPricetd) +parseFloat(houDisPriceTd);
														$("#nozhengdanId").html("￥"+parseFloat(houYingfu).toFixed(2));
													  //window.location.href='${basePath }parreserve/saveNextParReserve.shtml?pkParresId=${pkParresId}&parType=${parType}&orderPk=${orderPk}&zhucanPrice=${zhucanPrice}'; 
													}
												} else {
												alertError("系统错误，设置折扣失败！");
												return false;
											}
											
											var tdcuId ="#cu"+prdId;
											$(tdcuId).attr('disabled', "true");//促销折扣 按钮 disabled
											$(tdcuId).removeClass().addClass("btn_l_no");
											
											$("#zhengdanzhekou").attr('disabled', "true");
											$("#zhengdanzhekou").removeClass().addClass("btn_no");
											$('#popDiscount').window('close');
										},
										error : function() {
											alertError("系统异常!");
										}
									});

							$('#popDiscount').window('close');
						}

					},
					error : function() {
						alertError("系统异常!");
					}
				});
	}

	function shezheCeng(o) {
		$("#hidPrid").val(o.id);
		$('#popDiscount').window('open');
		$('#selDis').val("");
		$('#pwd').val("");
		refreshSelect();
	}

	function initOrderPrd(type) {
		var disPricesAll = 0;
		var yingfuAmount = 0;
		
		var ind = 0;
		$("#orderPrdtable").find("tr:not(:first)").remove();
		<c:forEach items="${listPosOrderPrd}" var="obj" varStatus="status">

		ind = '${status.index}';
		var cateName = '';
		var prdCateId = '${obj.prdCateId}';
		if (prdCateId == "001003" || prdCateId == "001004") {
			cateName = "基础套餐";
		} else if (prdCateId.indexOf("00100800") != -1) {
			cateName = "附加套餐";
		} else if (prdCateId.indexOf("00100900") != -1) {
			cateName = "装饰物";
		} else {
			cateName = "场内消费";
		}
		var tdIndex = '${status.index+1}';
		var price = '${obj.price}';
		var pcount = '${obj.count}';
		var prdMoneySum = price * pcount;
		var disPrices;
		var disPrice = '${obj.disPrice}';
		if (null != disPrice && disPrice != "") {
			disPrices = disPrice ;// 前台 直接获取 后台 折后金额数据
		} else {
			disPrices = "";
		}
		var disDesc = '${obj.disDesc}';
		if (disDesc == null) {
			disDesc = "";
		}
		var htm = "<tr>";
		var fkPrdId = '${obj.fkPrdId}';
		var shenzheb = 'shezheCeng("' + fkPrdId + '")';
		htm += "<td>" + tdIndex + "</td>";
		htm += "<td>" + fkPrdId + "</td>";
		htm += "<td>" + cateName + "</td>";
		htm += "<td>${obj.productName}</td>";
		htm += "<td>" + pcount + "</td>";
		htm += "<td>" + price + "</td>";
		htm += "<td>" + prdMoneySum + "</td>";
		htm += '<td id="tdDesc'+fkPrdId+'">' + disDesc + '</td>';
		if (cateName != "装饰物") {
			if (disPrices != "") {
				disPrices=parseFloat(disPrices).toFixed(2);
				var tESHUdisCount = '${TESHUdisCount}';
				if (tESHUdisCount != '0.0' && type == 'huiyuanyouhui') {
					
					disPrices = tESHUdisCount * disPrices;
					disPrices=parseFloat(disPrices).toFixed(2);
					var heyingfu = parseFloat(yingfuAmount) +parseFloat(disPrices) ;
					yingfuAmount = parseFloat(heyingfu).toFixed(2);
				}
				
			}
			htm += '<td><input type="button" name="shezhebutton" id="'
					+ fkPrdId
					+ '" class="btn_l" onClick="shezheCeng(this)" value="设置"><input type="hidden" name="zdansz" value="'+fkPrdId+'@1"></td>';
			if ('${obj.motionCamPrdId}' != "") {
				var cxdisDesc ='${obj.cxdisDesc}'; var cxdisValue ='${obj.cxdisValue}';
				var cuxiaoceng = 'cuxiaoCeng("' + fkPrdId + '","' + cxdisDesc + '","'+ cxdisValue + '","'+ parseFloat(disPrices).toFixed(2) + '")';
				htm += '<td id="tdcu'+fkPrdId+'"><input type="button" name="chuxiaobutton" id="cu'+fkPrdId+'" class="btn_l" onClick='+cuxiaoceng+' value="使用"></td>';
			} else {
				htm += '<td>-</td>';
			}
			htm += '<td  id="tdPrices'+fkPrdId+'">' + parseFloat(disPrices).toFixed(2) + '</td>';
		} else {
			htm += '<td>-</td>';
			htm += '<td><input type="hidden" name="zdansz" value="'+fkPrdId+'@2">-</td>';
			htm += '<td id="tdPrices'+fkPrdId+'">' + parseFloat(disPrices).toFixed(2) + '</td>';
			disPrices =parseFloat(disPrices).toFixed(2);
			var heyingfu = parseFloat(yingfuAmount) +parseFloat(disPrices).toFixed(2) ;
			yingfuAmount = parseFloat(heyingfu).toFixed(2);
		}
		if (disPrices != "") {
			var hedisPricesAll = parseFloat(disPricesAll) +parseFloat(disPrices) ;
			disPricesAll = parseFloat(hedisPricesAll).toFixed(2);
		}
		htm += "</tr>";

		$("#orderPrdtable").find("tr:eq(" + ind + ")").after(htm);

		</c:forEach>
		var html = "<tr>";
		html += '<td colspan="11">';
		html += '<ul class="goods_ul fr p10">';
		html += '<li>订单总额：<span class="color_lv mlr5 f18">￥${posOrderOld.amount }</span></li>';
		<c:choose>
			<c:when test="${showDiscount =='showdis'}">
			html += '<li><input id="youhuicheckId" onclick="oncheckbox()" type="checkbox" >使用会员优惠 <span class="color_lv mlr5 f18">${TESHUdisDesc}</span> &nbsp;应付金额：<span class="fb mlr5 color_org f18" id="yingfuSdiv">'
					+ parseFloat(yingfuAmount).toFixed(2) + '</span></li>';
			</c:when>
			<c:when test="${showDiscount =='hiddendis'}">
			html += '<li>&nbsp;&nbsp;应付金额：<span class="fb mlr5 color_org f18" id="nozhengdanId">'
					+ parseFloat(disPricesAll).toFixed(2) + '</span></li>';
			</c:when>
		</c:choose>

		html += '<li><input type="button" id="zhengdanzhekou" class="btn" value="整单打折" onClick="allzhekouCengprd()"></li>';
		html += '</ul>';
		html += '</td>';
		html += '</tr>';
		$("#orderPrdtable").append(html);
		var isChecked = $("#youhuicheckId").attr("checked");
		if ("checked" == isChecked) {//会员 选择 整单折扣优惠
			checkedyouhui();
		} else {
			$("#yingfuSdiv").html("￥" + parseFloat(yingfuAmount).toFixed(2));
			$("#nozhengdanId").html("￥" + parseFloat(disPricesAll).toFixed(2));
			$("#amount").val('${posOrderOld.amount }');
		}
	}
	
	function cuxiaoCeng(fkPrdId,cxdisDesc,cxdisValue,disPrices){//点击 促销折扣 的使用 按钮 
		var tdcuxiaoId ="#tdcu"+fkPrdId;
		$(tdcuxiaoId).html(cxdisDesc);
		var tdPricesId ="#tdPrices"+fkPrdId;
		var houDisPrice =disPrices*cxdisValue;
		$(tdPricesId).html("￥" + disPrices*cxdisValue);
		
		var tdShezhiId ="#"+fkPrdId;
		$(tdShezhiId).attr('disabled', "true");//特殊折扣 设置 按钮 disabled
		$(tdShezhiId).removeClass().addClass("btn_l_no");
		
		$("#zhengdanzhekou").attr('disabled', "true");//整单折扣 设置 按钮 disabled
		$("#zhengdanzhekou").removeClass().addClass("btn_no");
		 var yingfuPrice =$("#yingfuSdiv").html();
		 if(yingfuPrice !=null){
			 var yingfuPriceArray  =yingfuPrice.split("￥");
			 yingfuPrice =yingfuPriceArray[1];
			 var houYingfu =parseFloat(yingfuPrice)-parseFloat(disPrices) +houDisPrice;
			 $("#yingfuSdiv").html("￥"+parseFloat(houYingfu).toFixed(2));
		 }else{
			   yingfuPrice =$("#nozhengdanId").html();
			   var yingfuPriceArray  =yingfuPrice.split("￥");
				 yingfuPrice =yingfuPriceArray[1];
				 var houYingfu =parseFloat(yingfuPrice)-parseFloat(disPrices) +houDisPrice;
				 $("#nozhengdanId").html("￥"+parseFloat(houYingfu).toFixed(2));
		 }
	}
	
	function checkedyouhui() {
		$("[name = shezhebutton]").attr('disabled', "true");
		$("[name = shezhebutton]").removeClass().addClass("btn_l_no");

		$("[name = chuxiaobutton]").attr('disabled', "true");
		$("[name = chuxiaobutton]").removeClass().addClass("btn_l_no");

		$("#zhengdanzhekou").attr('disabled', "true");
		$("#zhengdanzhekou").removeClass().addClass("btn_no");
	}
	function oncheckbox() {
		var isChecked = $("#youhuicheckId").attr("checked");
		if ("checked" != isChecked) {
			$("[name = shezhebutton]").attr('disabled', "false");
			$("[name = shezhebutton]").removeClass().addClass("btn_l");

			$("[name = chuxiaobutton]").attr('disabled', "false");
			$("[name = chuxiaobutton]").removeClass().addClass("btn_l");

			$("#zhengdanzhekou").attr('disabled', "false");
			$("#zhengdanzhekou").removeClass().addClass("btn");
			initOrderPrd('');
			$("#paidAmount").val('${paidWuzheKou}');
			$("#yingfuSdiv").html("￥  ${posOrderOld.amount}");
		} else {//整单折扣 选中
			initOrderPrd('huiyuanyouhui');
			$("#youhuicheckId").attr("checked", true);
			checkedyouhui();
			$("#paidAmount").val('${paidAmount}');
		}
	}
	function payMent() {
		var isChecked = $("#youhuicheckId").attr("checked");
		if ("checked" == isChecked) {//会员 选择 折扣优惠
			$("#amount").val('${posOrderOld.amount }');
			$("#fkParcpnId").val('${TESHUdisCount}');
		}else{
			  var yingfuPrice =$("#yingfuSdiv").html();
			  if(yingfuPrice !=null){
				  var yingfuPriceArray  =yingfuPrice.split("￥");
					 yingfuPrice =yingfuPriceArray[1];
			  }else{
				  yingfuPrice =$("#nozhengdanId").html();
				  var yingfuPriceArray  =yingfuPrice.split("￥");
					 yingfuPrice =yingfuPriceArray[1];
			  }		
			  $("#amount").val(parseFloat(yingfuPrice).toFixed(2));
		}
		$('#payMentButtonId').attr('disabled', "true");
		$('#payMentButtonId').removeClass().addClass("btn_no");
		$('#btnPrevId').attr('disabled', "true");
		$('#btnPrevId').removeClass().addClass("btn_no");
		checkedyouhui();
		var paidAmount = $("#paidAmount").val();
		if (paidAmount == "") {
			alertWarning("请输入预付金额！");
			return;
		} else {
			var url = '${basePath }parreserve/parOrderPayMent.shtml';

			$.ajax({
				url : url,
				type : 'POST',
				data : $("#form2").serialize(),//序列化表单里所有的内容
				async : false,
				error : function(XMLHttpRequest) {
					ajaxError(XMLHttpRequest);
					},
				success : function(data) {
					if (data != null) {
						var pkParresIdold;
						var orderPk;
						var posOrderOldStatus;
						for ( var o in data) {
							if (o == "pkParresId") {
								pkParresIdold = data[o];
							} else if (o == "orderPk") {
								orderPk = data[o];
								$("#pkOrderId").val(orderPk);

							} else if (o == "posOrderOldStatus") {
								posOrderOldStatus = data[o];
								$("#posOrderOldStatus").val(posOrderOldStatus);
							}
						}

						alertInfo("下单成功。");
					} else {
						$.messager.alert('提示', '下单结算失败！', 'error');
					}
				}
			});
		}

	}
	function closeDiv(pageName, type) {
		if (type == 'save') {
			alertInfo("设置成功！");
		}
		if (type == "pay") {

		}
		$('#popDiscount').window('close');
		//window.location.href=pageName;
	}
	function flashpay() {
		var payokOrderId = $("#pkOrderId").val();
		var payResult = "";
		if (payokOrderId != "") {
			var url = '${basePath }parreserve/flashpayOk.shtml';
			$.ajax({
				url : url,
				type : 'POST',
				data : 'pkParresId=${pkParresId}',
				async : false,
				error : function(XMLHttpRequest) {
					ajaxError(XMLHttpRequest);
					},
				success : function(posOrderOldStatus) {
					if (posOrderOldStatus == "2") {
						payResult = "已付款";
					} else if (posOrderOldStatus == "6") {
						payResult = "已预付";
					} else {
						payResult = "未付款";
					}
				}
			});
		} else {
			payResult = "未付款。";
		}
		$("#posOrderIdOk").val(payResult);
	}
	function getupgo() {
		var parType = '${parType}';
		var guanlitype = '${guanliDetail}';
		if (guanlitype != "" && guanlitype == "guanliDetail") {// 点击 上一步  返回 到 档案管理--》预约管理  详细页面
			var url = '${basePath }parreserve/toPadReserveNew.shtml?pkParresId=${pkParresId}&pkOrderId=&grpFlag='
					+ parType;
			window.location.href = url;
		} else {
			if (parType == "1") {
				window.location.href = 'toPadTuanTiReserveNew.shtml?parType='
						+ parType
						+ '&pkParresId=${pkParresId}&pkOrderId=${orderPk}';
			} else {
				window.location.href = 'toPadReserveNew.shtml?parType='
						+ parType
						+ '&pkParresId=${pkParresId}&pkOrderId=${orderPk}';
			}
		}
	}
	function wancheng() {
		var guanlitype = '${guanliDetail}';
		var url="";
		if(guanlitype=='guanliDetail'){
			url='${basePath }/parreserve/reservationPage.shtml';
		}else{
			url='${basePath }/parreserve/ToReservationPage.shtml?parType=1&pkParresId=&pkOrderId=';
		}
		window.location.href = url;
	}

	function allzhekouCengprd() {
		//$("#hidPrid").val(o.id);
		$('#popzhengdanDiscount').window('open');
		$('#selzhengdanDis').val("");
		$('#pwdhidzhengdanPrid').val("");
		refreshSelect();
	}
	
function allzhekouprd(){
	if ($("#pwdhidzhengdanPrid").val() == "") {
		alertError("经理密码不能为空");
		return false;
	}
	var textdis = $("#selzhengdanDis").find("option:selected").text();
	var prdId = new Array();
	  $("input[name='zdansz']").each(function(){
		  prdId.push($(this).val()); 
	})
	var selDis = $("#selzhengdanDis").val();
	// 经理密码验证
	$.ajax({
				cache : false,
				type : "get",
				url : "${basePath}membership/single/validationManagerPassword.shtml",
				data : "password=" + $("#pwdhidzhengdanPrid").val(),
				error : function(XMLHttpRequest) {
					ajaxError(XMLHttpRequest);
					},
				success : function(msg) {
					if (msg == "0") {
						alertError("经理密码错误！");
						return false;
					} else {
						// 修改 商品明细 折扣后的金额
						$.ajax({
									cache : false,
									type : "get",
									url : "${basePath}parreserve/orderAllPrdDiscount.shtml",
									data : "prdId="
											+ prdId
											+ "&pkOrderId=${orderPk}&selDis="
											+ selDis + "&fkUserId=" + msg,
									error : function(XMLHttpRequest) {
										ajaxError(XMLHttpRequest);
										},		
									success : function(data) {
										if (data != "") {
											
											for ( var o in data) {
												if (o == "posOrderPrdList") {
													 jsonarray=data[o];
													 if(jsonarray!=null && jsonarray.length>0){
													 var dispriceAll=0;
													 for (var k = 0; k < jsonarray.length; k++) {
															  var jsonobj = jsonarray[k];
													  if(jsonobj!=null){
														
														  var ordprdId =jsonobj["fkPrdId"];
														  var disprice =jsonobj["disPrice"];
														  var prdcount =jsonobj["count"];
														  var tdDescId = "#tdDesc"+ ordprdId;
														  var tdPricesId = "#tdPrices"+ ordprdId;
														  $(tdDescId).html(parseFloat(textdis).toFixed(2));
														  var disprices = disprice;//直接获取后台的折后金额数据
														  $(tdPricesId).html(disprices);
														  dispriceAll +=disprices;
													  }
													 }
													  var yingfuPrice =$("#yingfuSdiv").html();
													  if(yingfuPrice !=null){
														  $("#yingfuSdiv").html(parseFloat(dispriceAll).toFixed(2));
													  }else{
														  $("#nozhengdanId").html("￥"+parseFloat(dispriceAll).toFixed(2));
													  }
													 }
												}
												if (o == "paidAmount") {
													var houPaidAmount =data[o];
													  if(houPaidAmount !=-1){
														  var seldisArray =selDis.split("_");
															var seldiscount =seldisArray[1];
														  var houPaidAmount =parseFloat(houPaidAmount)*parseFloat(seldiscount);
														  $("#paidAmount").val(houPaidAmount.toFixed(2));
													  }
												}
											}
												
								
											$("[name = shezhebutton]").attr('disabled', "true");
											$("[name = shezhebutton]").removeClass().addClass("btn_l_no");

											$("[name = chuxiaobutton]").attr('disabled', "true");
											$("[name = chuxiaobutton]").removeClass().addClass("btn_l_no");
										} else {
											alertError("系统错误，设置整单折扣失败！");
											return false;
										}
										$('#popzhengdanDiscount').window('close');
									},
									error : function() {
										alertError("系统异常!");
									}
								});

						$('#popzhengdanDiscount').window('close');
					}

				},
				error : function() {
					alertError("系统异常!");
				}
			});
}
</script>
</head>
<body class="bg">
<div class="top"><a class="icon iconfont fl ml10" href="javascript:getupgo()">&#xe612;</a>付款</div>
<div class="i_index fixed">
<div class="i_index_z fl oh">
       	<!----内容-->
        
        <div class="p20">
        	<form action="${basePath }parreserve/pageOrderPrdListByOrdId.shtml" method="post" id="form1">
        	<table class="table ml30" id="orderPrdtable"><tr>
                    <th>序号</th>
                    <th>商品编码</th>
                    <th>类型</th>
                    <th>商品名称</th>
                    <th>数量</th>
                    <th>单价</th>
                    <th>小计</th>
                    <th>折扣</th>
                    <th>特殊折扣</th>
                    <th>促销折扣</th>
                    <th>折后金额</th>
                </tr>
                
             </table>
             	<input type="hidden" name="teshudisCount" id="teshudisCount" value="${TESHUdisCount}"> 
			<input type="hidden" name="pageSize" value="2000"> 
			<input	type="hidden" name="pageNo" value="1">  
			<input	type="hidden" name="pkOrderId" value="${orderPk}">  
		</form>
        </div>
        
        <div class="add_x_m">
        	<form action="" method="post" id="form2">
        	<dl class="payment_r_dl ml100 f16">
        	  <c:if test="${payMentMoney!=''}">
            	 <dd><label>已预付：</label><span class="fb mlr5 color_org f18">￥${payMentMoney}</span></dd>
               </c:if>
                <dd>预付：<input type="text" name="paidAmount" id="paidAmount" class="iput_t w200"    onkeyup="this.value=this.value.replace(/\D/g,'')"  onafterpaste="this.value=this.value.replace(/\D/g,'')">&nbsp;&nbsp;<input type="button" id="payMentButtonId" class="btn" onclick="payMent()" value="下单结算"></dd>
                <dd>
              		  <input type="hidden" name="pkParresId" id="pkParresId" value="${pkParresId}">
                    	<input type="hidden" name="pkOrderId" id="pkOrderId" value="${orderPk}">
                    	<input type="hidden" name="fkParcpnId" id="fkParcpnId">
                    	<input type="hidden" name="amount" id="amount"  value="${posOrderOld.amount }">
                    	<input type="hidden" name="posOrderOldStatus" id="posOrderOldStatus" >
                </dd>
                <dd><input type="button" onclick="flashpay()" class="btn w150" value="刷新付款结果" >
                <input type="text" id="posOrderIdOk" class="iput_t w200 ml10"  ></dd>
            </dl>
            </form>
        </div>
        
        
        <!----底部按钮----->
        <div class="btm_btn mt10">
                <dl>
                    <dd><input type="button" class="btn" onClick="wancheng()"  value="完成"></dd>
                </dl>
        </div>
        <!----底部按钮----->
        <!---内容--->
    </div>
</div>



<div id="popDiscount" class="easyui-window" title="特殊折扣设置"
		data-options="modal:true,closed:true,iconCls:'icon-save'"
		style="width: 400px; height: 230px; position: relative;">
		<div class="editor_h1 fixed">
			<div class="editor fl">
				<ul>
					
					<li>
						<label>折扣率：</label>
						<div class="uboxstyle">
						<input type="hidden" id="hidPrid" name="hidPrid">
							<select name="selDis" id="selDis">
								<option value=""> 请选择</option>
								<c:forEach items="${discountList}" var="dc">
									<option value="${dc.pkDisId}_${dc.disValue}">${dc.disDesc}</option>
								</c:forEach>
							</select>
						</div>
					</li>
					<li><label>经理密码：</label><input type="password" id="pwd" class="iput_t w200"></li>
				</ul>
			</div>
		</div>
		<div class="btm_btn btm_bg">
			<dl>
				<dd>
					<input type="button" class="btn"  onclick="disCountOk()" value="确定">
				</dd>
				<dd>
					<input type="button" class="btn" onclick="$('#popDiscount').window('close')" value="取消">
				</dd>
			</dl>
		</div>
	</div>
	
	<!-- 整单特殊折扣 -->
		<div id="popzhengdanDiscount" class="easyui-window" title="整单特殊折扣"
		data-options="modal:true,closed:true,iconCls:'icon-save'"
		style="width: 400px; height: 200px; position: relative;">
		<div class="editor_h1 fixed">
			<div class="editor fl">
				<ul>
					
					<li>
						<label>折扣率：</label>
						<div class="uboxstyle">
						<input type="hidden" id="hidzhengdanPrid" name="hidzhengdanPrid">
							<select name="selzhengdanDis" id="selzhengdanDis">
								<c:forEach items="${discountList}" var="dc">
									<option value="${dc.pkDisId}_${dc.disValue}">${dc.disDesc}</option>
								</c:forEach>
							</select>
						</div>
					</li>
					<li><label>经理密码：</label><input type="password" id="pwdhidzhengdanPrid" class="iput_t w200"></li>
				</ul>
			</div>
		</div>
		<div class="btm_btn btm_bg">
			<dl>
				<dd>
					<input type="button" class="btn"  onclick="allzhekouprd()" value="确定">
				</dd>
				<dd>
					<input type="button" class="btn" onclick="$('#popzhengdanDiscount').window('close')" value="取消">
				</dd>
			</dl>
		</div>
	</div>

</body>
</html>